package main.pojo;

/**
 * Project: tobe-better-coder
 * Package: main.pojo
 *
 * @author : Mr.xu
 * @date : 2023/9/21 22:23
 */
public class Cat {

    public int age;

    public String name;

    public void eat(String foodName){
        System.out.println(name + "正在吃" +foodName);
    }
    public void say(String sayWord){
        System.out.println(name + "说" + sayWord);
    }

    public Cat(){

    }

    public Cat(String name,int age){
        this.name = name;
        this.age = age;
    }
}